package st.business.tepth.business.user.busnumber.workholder.maintain.pass.content;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import st.business.tepth.R;
import st.business.tepth.business.bean.MaintainPassInfoBean;

/**
 * @author zhangyu
 * @date 2019/3/26
 */
public class RepairContentAdapter extends BaseQuickAdapter<MaintainPassInfoBean.PhenomenonListBean,
        BaseViewHolder> {

    public RepairContentAdapter(int layoutResId, @Nullable List<MaintainPassInfoBean.PhenomenonListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MaintainPassInfoBean.PhenomenonListBean item) {
        helper.setText(R.id.tv_trouble, item.getPhenomenonName());
        helper.setText(R.id.tv_warn_record, item.getAlarmRecord());
        helper.setText(R.id.tv_work_content, item.getWorkContent());
    }
}
